package edu.scau.divineplace.entity.query;

import edu.scau.divineplace.config.global.validate.annotation.NotContainBanWord;
import edu.scau.divineplace.entity.enums.UserTypeEnum;
import edu.scau.divineplace.entity.validate.group.Register;
import edu.scau.divineplace.entity.validate.group.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @Author: x1aolone
 * @Date: 2020/12/11 16:00
 */
@Data
@ApiModel("AccountQuery")
public class AccountQuery {

    @NotContainBanWord(groups = {Update.class, Register.class})
    @NotBlank(groups = {Register.class})
    @ApiModelProperty("用户名")
    private String name;

    @NotBlank(groups = {Register.class})
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("头像")
    private String avatar;

    @NotBlank(groups = {Register.class})
    @ApiModelProperty("电话号码")
    private String telephone;

}
